<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>

    <title>职位管理</title>

    <link href="../../css/mine.css" type="text/css" rel="stylesheet"/>
    <script type="text/javascript" src="/js/jquery.js"></script>
</head>
<body>
<style>
    .tr_color {
        background-color: #9F88FF
    }
</style>
<div class="div_head">
            <span>
                <span style="float: left;">当前位置是：系统管理-》职位设置</span>
                <span style="float: right; margin-right: 8px; font-weight: bold;">
                    <a style="text-decoration: none;" href="/resource/demo3/getDept">【添加】</a>
					<a style="text-decoration: none;" href="#">【删除】</a>
                </span>
            </span>
</div>
<div></div>
<div class="div_search">
            <span>
                <form action="/resource/demo3/jobInstall" method="post">
                    职位名称: 
					<input type="text" name="rname" value="${rname}"/>
					 所属部门: 
					<input type="text" name="deptname" value="${deptname}"/>
					是否启用: 
					<select name="state">
						<option value="1" selected>已启用</option>
						<option value="0">未启用</option>
					</select>
                    <input value="查询" type="submit"/>
					
                </form>
            </span>
</div>
<div style="font-size: 13px; margin: 10px 5px;">
    <table class="table_a" border="1" width="100%">
        <tbody>
        <tr style="font-weight: bold;">
            <td width="40px;">序号</td>
            <td width="30px;"><input type="checkbox"/></td>
            <td width="80px;"> 职位编码</td>
            <td width="80px;"> 职位名称</td>
            <td width="120px;">所属部门</td>
            <td width="120px;">是否启用</td>
            <td align="center" width="100px;">操作</td>
        </tr>
        <c:forEach items="${pageInfo.list}" var="orgRole" varStatus="s">
        <tr id="product1">
            <td>${orgRole.roleid}</td>
            <td><input type="checkbox"/></td>
            <td>${orgRole.rolenum}</td>
            <td><a href="view.jsp">${orgRole.rname}</a></td>
            <td>${orgRole.dept.deptname}</td>
            <td>${orgRole.state}</td>
            <td>
                <a href="/resource/demo3/findByRoleId?roleid=${orgRole.roleid}">修改</a>
                <a href="#">删除</a>
            </td>
        </tr>
        </c:forEach>
        <tr>
            <td colspan="20" style="text-align: center;">
                <a style="text-decoration: none;" href="/resource/demo3/jobInstall?rname=${rname}&deptname=${deptname}&state=${state}">
                    首页
                </a>
                <a style="text-decoration: none;" href="/resource/demo3/jobInstall?page=${pageInfo.prePage==0?1:pageInfo.prePage}&rname=${rname}&deptname=${deptname}&state=${state}">
                    上一页
                </a>
                <c:forEach var="s"  begin="1" end="${pageInfo.pages}" >
                    <a style="text-decoration: none;" href="/resource/demo3/jobInstall?page=${s}&rname=${rname}&deptname=${deptname}&state=${state}">
                            ${s}
                    </a>
                </c:forEach>
                <a style="text-decoration: none;" href="/resource/demo3/jobInstall?page=${pageInfo.nextPage==0?pageInfo.pages:pageInfo.nextPage}&rname=${rname}&deptname=${deptname}&state=${state}">
                    下一页
                </a>
                <a style="text-decoration: none;" href="/resource/demo3/jobInstall?page=${pageInfo.pages}&rname=${rname}&deptname=${deptname}&state=${state}">
                    尾页
                </a>
                共${pageInfo.total}条 第${pageInfo.pageNum}页/共${pageInfo.pages}页
            </td>
        </tr>
        </tbody>
    </table>
</div>
</body>
</html>